package com.baizhi.mall.mapper;

import com.baizhi.mall.entity.mysql.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface AdminDao extends BaseMapper<Admin> {
    //注册
    int insert(Admin a);
    //登录
    Admin login(String name);
    //查所有
    List<Admin> selectOneAdmin(String name);
    //查一个
    List<Admin> selectAllAdmin();

    void updateStatus(Integer status,Integer id);

}
